package com.online.messagebatchmanageserver.slave0;

import com.online.messagebatchmanageserver.entity.Message;
import org.apache.ibatis.annotations.*;

/**
 * Created by littleheng on 2018/4/28
 */
@Mapper
public interface Message0Mapper {

    @Insert("insert into ols_message(uuid, direction, type, content, create_time, read_status, company_id,session_id) values(#{uuid}, #{direction}, #{type}, #{content}, #{createTime}, #{readStatus}, #{companyId}, #{sessionId})")
    int insertMessage(Message message);

    @Update("update ols_message set read_status = 1 where uuid = #{uuid}")
    int updateMessageStatus(@Param("uuid")String uuid);


}
